package com.tengju.user.infrastructure.persistence.mybatis.mapper.dealer.custom;

import com.tengju.user.infrastructure.persistence.mybatis.dataobject.StarChangeRecordDO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface StarChangeRecordDOCustomMapper {

    List<StarChangeRecordDO> listStarChangeRecordByIdCode(@Param("idCode") Long idCode);

    List<StarChangeRecordDO> batchGetLastChangeRecord(@Param("idCodeList") List<Long> idCodes);

    List<StarChangeRecordDO> selectStarChangeRecordList(
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime);

    List<Map<String, Integer>> signNew(@Param("timeFrom") LocalDateTime timeFrom,
                                 @Param("timeTo") LocalDateTime timeTo);
}